package wfl.spec.edu;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class ActivityFirst extends AppCompatActivity {
    private TextView firstTxt;
    private NetImageView image;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first);
        Intent intent=getIntent();
        Bundle bundle=intent.getExtras();

        String str=bundle.getString("2");
        firstTxt=(TextView)findViewById(R.id.title);
        firstTxt.setText(str);

        String str2=bundle.getString("3");
        firstTxt=(TextView)findViewById(R.id.content);
        firstTxt.setText(str2);

        String str3=bundle.getString("1");
        image = (NetImageView) findViewById(R.id.Image);
        image.setImageURL("http://www.yyjsx.xyz" + str3);
    }
}
